package com.ruoyi.patrol.quartzTask;

import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.patrol.domain.PtLineGuard;
import com.ruoyi.patrol.domain.PtLineStaff;
import com.ruoyi.patrol.domain.PtLineTask;
import com.ruoyi.patrol.service.IPtLineGuardService;
import com.ruoyi.patrol.service.IPtLineStaffService;
import com.ruoyi.patrol.service.IPtLineTaskService;
import com.ruoyi.patrol.service.IPtMonitorService;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author ：小杜
 * @date ：Created in 2023/11/28 14:10
 * @描述 ：
 */
@Component("monitorTask")
public class MonitorTask {
    private static IPtMonitorService monitorService;

    public static void setContext(ConfigurableApplicationContext context) {
        monitorService = context.getBean(IPtMonitorService.class);

    }

    public static void updateMonitorTask() {
        monitorService.update();
    }
}
